<%@ page contentType="text/html; charset=UTF-8"%>
<%@ taglib uri="/struts-tags" prefix="s"%>

<html>
<head>
<title>验证码查询</title>
<%@ include file="/comm.jsp"%>
<script>
$(document).ready(function() {
	$("form *").autohelp("#autohelp");
});
  $(document).ready(function(){
    $('#ok').click(function() { 
    $('#validate_getAll').submit(); 
    }) 
    $("#validate_getAll").validate(
    );
  });

</script>
<script language="javascript">
	function exportValidate(){
	document.formpage.action = "validate_exportValidate";
	document.formpage.submit();
	document.formpage.action = "validate_getAll";
	}
</script>

</head>
<body>
	<%@ include file="/messages.jsp" %>
	<s:form action="validate_getAll" namespace="/" name="formpage">
			<table width="100%" border="0" cellpadding="0" >
					<tr>
					  <td align="right" class="tr_title">订单号：</td>
					  <td>
					  	<input type="text" maxlength="30" id="orderId" name="validateDto.orderId" value="${validateDto.orderId}">
					  </td>
					  <td align="right" class="tr_title">公司账号：</td>
					  <td>
					  	<input type="text" maxlength="30"  value="${validateDto.companyId}" id="companyId" name="validateDto.companyId"/>
					  </td>
					</tr>
					<tr>
					  <td align="right" class="tr_title">序列号：</td>
					  <td>
					  	<input type="text" name="validateDto.seqId" value="${validateDto.seqId}" id="seqId"  maxlength="30"/>
					  </td>
					  <td align="right" class="tr_title">状态：</td>
					  <td>
					  	<s:select list="#{'':'请选择...','01':'未激活','02':'已激活','03':'已验证','04':'已损坏','05':'已冻结','06':'已作废'}"
					   		 name="validateDto.status"
					  		 value="#request.validateDto.status" 
					  		 cssStyle="width:100px" >
					  	</s:select>					  	
					  </td>
					</tr>
					<tr>
					  <td align="right" class="tr_title">开始日期：</td>
					  <td>
					  	<input type="text" name="validateDto.fromDate" value='<s:date name="#request.validateDto.fromDate" format="yyyy-MM-dd" />' size="20" 
    							             onfocus="WdatePicker({isShowWeek:true,errDealMode:1,readOnly:true})" 
								             style="WIDTH: 200px;border:#999 1px solid;height:20px;background:#fff url(<%=request.getContextPath()%>/js/My97DatePicker/skin/datePicker.gif) no-repeat right;" />
					  </td>
					  <td align="right" class="tr_title">结束日期：</td>
					  <td>
					  	<input type="text" name="validateDto.toDate" value='<s:date name="#request.validateDto.fromDate" format="yyyy-MM-dd" />' size="20" 
    							             onfocus="WdatePicker({isShowWeek:true,errDealMode:1,readOnly:true})" 
								             style="WIDTH: 200px;border:#999 1px solid;height:20px;background:#fff url(<%=request.getContextPath()%>/js/My97DatePicker/skin/datePicker.gif) no-repeat right;" />
					  </td>
					</tr>
					<tr>
				
						<td colspan="4" align="center" >
							<input type="button" id="ok" class="button" value="确定"/>
							<input type="reset" id="rest" class="button" value="重置"/>
						<input type="button" id="export" class="button" value="导出Excel文件" onclick="javascript:exportValidate();"/>
						</td>						
					</tr>
				</table>			

			<table border="0" cellpadding="5" cellspacing="1" class="tb_datalist">
				<tr class="tr_title">				
				<td  nowrap>序列号</td>
    			<td  nowrap>验证码</td>
    			<td  nowrap>订单号</td>
    			<td  nowrap>公司账号</td>
    			<td  nowrap>状态</td>
    			<td  nowrap>创建者</td>
    			<td  nowrap>创建日期</td>    			
    			<td  nowrap>更新者</td>    			
    			<td  nowrap>更新日期</td>    			
				</tr>
				<s:iterator value="#request.vailist" id="vv">
					<tr class="list_tr_item"
						onMouseOver="javascript:this.className='tr_selected';"
						onMouseOut="javascript:this.className='tr_even';">						
						<td nowrap>
							<s:property value="#vv.seqId" />
						</td>

						<td nowrap>
							<s:property value="#vv.validateId" />
						</td>
						<td nowrap>
							<s:property value="#vv.oraderId"/>
						</td>
						<td nowrap><s:property value="#vv.companyId"/></td>
    					<td nowrap>
    						
    						<s:if test="'01'==#vv.status">未激活</s:if>
    						<s:elseif test="'02'==#vv.status">已激活</s:elseif>
    						<s:elseif test="'03'==#vv.status">已验证</s:elseif>
    						<s:elseif test="'04'==#vv.status">已损坏</s:elseif>
    						<s:elseif test="'05'==#vv.status">已冻结</s:elseif>
    						<s:elseif test="'00'==#vv.status">已屏障</s:elseif>
    						<s:else>已作废</s:else>
    					
    					</td>
						
						<td nowrap>
							<s:property value="#vv.createBy" />
						</td>
						<td nowrap>
							<s:date name="#vv.createDate" format="yyyy-MM-dd"/>							
						</td>						
						<td nowrap>
							<s:property value="#vv.updateBy" />
						</td>
						<td nowrap>
							<s:date name="#vv.updateDate" format="yyyy-MM-dd"/>
						</td>						
					</tr>
				</s:iterator>
				</table>
			
		<s:property value="#request.allowpage" escape="false" />
	</s:form>
</body>

</html>